import request from "@/utils/request";

// 获取消息推送列表
export function messagePush_list(query) {
  return request({
    url: "/town/message/list",
    method: "get",
    params: query,
  });
}

// 新增推送消息
export function messagePush_add(query) {
  return request({
    url: "/town/message/pushXiangYin",
    method: "post",
    data: query,
  });
}

// 获取所有活动信息
export function activity_list(query) {
  return request({
    url: "/town/message/getActivity",
    method: "get",
    params: query,
  });
}

// 查询推送详情信息
export function messagePush_info(data) {
  return request({
    url: "/town/message/info",
    method: "get",
    params:data
  });
}

// 删除推送消息
export function messagePush_delete(ids) {
  return request({
    url: "/town/message/"+ids,
    method: "delete"
  });
}

